<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <table></table>
    <script>
        // 训练6
        console.log(`第六题`)
        let sum = 0;
        for (let i = 1; i <= 1000; i++) {
            if (i % 65 != 0) {
                continue;
            }
            sum += i
        }
        console.log(`和为${sum}`);
        // 训练7
        console.log(`第七题`);
        const tableTag = document.getElementsByTagName('table')[0];
        let tableTxt = ''
        for (let i = 1; i <= 3; i++) {
            tableTxt += `<tr>`
            for (let j = 1; j <= 3; j++) {
                if((i==1||i==3)&&j==3){
                    tableTxt += '';
                    continue;
                }
                tableTxt += `<td>${'第'}${i}${'排第'}${j}${'个'}`
            }
            tableTxt += `</tr>`
        }
        tableTag.innerHTML = tableTxt;
    </script>
</body>

</html>